<template>
    <van-nav-bar :title="title" :left-text="leftText" :right-text="rightText" left-arrow @click-left="onClickLeft" />
</template>

<script>
export default {
    name: "c-header",
    props: {
        title: {
            type: String,
            default: "",
        },
        leftText: {
            type: String,
            default: "",
        },
        rightText: {
            type: String,
            default: "",
        },
    },
    data() {
        return {};
    },
    mounted() {},
    methods: {
        onClickLeft() {
            this.$router.back();
        },
    },
};
</script>

<style lang='less' scoped>
</style>